package Lianxi.ATM;

import java.io.Serializable;

/**
 *  用户对象
 */
public class User implements Serializable {
    private static final long serialVersionUID = -3243743048788554954L;
    private String id;  //账号
    private String password; //密码
    private int money;  //钱

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public String setPassword(String password) {
        this.password = password;
        return password;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public User(String id, String password, int money) {
        this.id = id;
        this.password = password;
        this.money = money;

    }

}

